function changeHeight() {
	var contentBox = document.getElementById("content_box");
	var content = document.getElementById("content");
	var searchbar = document.getElementById("searchbar")
	if (contentBox == null) {
		if (searchbar == null) {
			content.style.height = (window.innerHeight-242)+"px";
		} else {
			content.style.height = (window.innerHeight-272)+"px";
		}
	} else {
		content.style.height = (window.innerHeight-160)+"px";
	}
}

window.onload = function() {
	changeHeight();
}

window.onresize = function() {
	changeHeight();
}